/**
 * 
 */
package pl.prv.polanie.client.model;

import java.util.ArrayList;
import java.util.List;

import pl.prv.polanie.client.dto.CSCalendarDayDTO;
import pl.prv.polanie.client.dto.CSSubjectEventDTO;
import pl.prv.polanie.client.dto.CSVCalendarDayDTO;
import pl.prv.polanie.client.dto.CSVSubjectEventDTO;

/**
 * Klasa generujaca przykladowe dane 
 * 
 * @author Janusz Prokulewicz
 * Created: Jun 3, 2008
 */
public class TestDataProvider {
	
	@SuppressWarnings("unchecked")
	public static List getTestSubjectEvents() {
//		List result = new ArrayList();
		
		
		//lista z cs
		CSSubjectEventDTO[] csSEs = new CSSubjectEventDTO[4];
		csSEs[0] = new CSSubjectEventDTO(1, 1, 1, 1, 1, 1, 1, 1, 1, new Integer(500), new Integer(100));
		csSEs[1] = new CSSubjectEventDTO(2, 1, 1, 1, 1, 1, 1, 1, 1,  new Integer(700), new Integer(100));
		csSEs[2] = new CSSubjectEventDTO(3, 1, 1, 1, 1, 1, 1, 1, 1,  new Integer(650), new Integer(100));
		csSEs[3] = new CSSubjectEventDTO(4, 1, 1, 1, 1, 1, 1, 1, 1,  new Integer(650), new Integer(200));
		
		
		//lista z csv
		CSVSubjectEventDTO[] csvSEs = new CSVSubjectEventDTO[4];
		
		csvSEs[0] = new CSVSubjectEventDTO(1, 1, "subject1", "room1", "subgroup1", "lecturer1", "cd1", new Integer(500), new Integer(100), "subjectName-name", "subjectName-symbol", "subjectType-name", "subjectType-initial",
				"lecturerName", "lecturerSurname", "lecturerAT");
		csvSEs[1] = new CSVSubjectEventDTO(2, 1, "subject2", "room2", "subgroup2", "lecturer2", "cd2", new Integer(700), new Integer(100), "subjectName-name", "subjectName-symbol", "subjectType-name", "subjectType-initial",
				"lecturerName", "lecturerSurname", "lecturerAT");
		csvSEs[2] = new CSVSubjectEventDTO(3, 1, "subject3", "room3", "subgroup3", "lecturer3", "cd3", new Integer(650), new Integer(100), "subjectName-name", "subjectName-symbol", "subjectType-name", "subjectType-initial",
				"lecturerName", "lecturerSurname", "lecturerAT");
		csvSEs[3] = new CSVSubjectEventDTO(4, 1, "subject4", "room4", "subgroup4", "lecturer4", "cd3", new Integer(650), new Integer(200), "subjectName-name", "subjectName-symbol", "subjectType-name", "subjectType-initial",
				"lecturerName", "lecturerSurname", "lecturerAT");

		List list = new ArrayList();
		list.add(csSEs);
		list.add(csvSEs);
		
		return list;
	}
	
	/**
	 * List (CSCalendarDayDTO[], CSVCalendarDayDTO[])
	 * @return
	 */
	@SuppressWarnings("unchecked")
	public static List getTestCalendarDays(){
		CSCalendarDayDTO[] csCSs = new CSCalendarDayDTO[1];
		csCSs[0] = new CSCalendarDayDTO(1, 1, "poniedzialek test", 1, false);
		
		CSVCalendarDayDTO[] csVCDs = new CSVCalendarDayDTO[1];
		csVCDs[0] = new CSVCalendarDayDTO(1, "sem1", "poniedzialek test", new Long(1), "sobota");
		
		List list = new ArrayList();
		list.add(csCSs);
		list.add(csVCDs);
		return list;
	}

}
